package week05Class;
import java.util.Random;
//jingjiren
public class GaphicProxy implements BigBoss {
    private BigBoss bigBoss;
    public GaphicProxy(BigBoss bigBoss){
        this.bigBoss=bigBoss;
    }
    @Override
    public void draw() {
        Random rand = new Random();
        if (rand.nextBoolean()){
            System.out.println("draw directly");
            bigBoss.draw();
        }else {
            System.out.println("draw with a X");
        }


    }
}
